<!DOCTYPE html>
<html language="zh-cn">
  <head>
    <link href="/static/css/style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>微博数据列表</title>
        <a href="http://127.0.0.1:8000/cluster_res">回到聚类结果页</a>
        <a href="http://127.0.0.1:8000/word_cloud">回到词云页</a>
        <a href="http://127.0.0.1:8000/emotion_analysis">回到情感分析页</a>
        <a href="http://127.0.0.1:8000/charts">回到结果页</a>
  </head>
  <body>
    <h1>微博数据</h1>
    <div>
        <table border="1" cellspacing="1" cellpadding="1" >
            <tr>
                <th>微博内容</th>
                <th>发布人</th>
                <th>发布时间</th>
                <th>评论数</th>
            </tr>
            {% for msg in data_list %}
                <tr>
                    <td>{{ msg.msg_content }}</td>
                    <td>{{ msg.msg_author }}</td>
                    <td>{{ msg.msg_time }}</td>
                    <td>{{ msg.msg_review_cnt }}</td>
                </tr>
            {% endfor %}

        </table>
        <ul class="pagination">
            {% if page_object.has_previous %}
                <li>
                <a href="?page={{ page_object.previous_page_number }}" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
                </li>
            {% endif %}

           {% for pg in page_object.paginator.page_range %}
            {% if page_object.number == pg %}
            <li class="active"><a href="?page={{ pg }}">{{ pg }}</a></li>
            {% else %}
            <li><a href="?page={{ pg }}">{{ pg }}</a></li>
            {% endif %}
            {% endfor %}
            {% if page_object.has_next %}
                <li>
                    <a href="?page={{ page_object.next_page_number }}" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>
            {% endif %}
        </ul>
    </div>
  </body>
</html>